package com.wejoy.video.middle.station.data.mapper.system;

import com.wejoy.video.middle.station.data.domain.system.SysDeptCamera;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 部门-摄像头
 *
 * @author miracle_j
 * @date 2022年11月21日 16:28:00
 */
public interface ISysDeptCameraMapper {

    /**
     * 插入
     *
     * @param sysDeptCamera sysDeptCamera
     * @return int
     */
    int insertSelective(SysDeptCamera sysDeptCamera);

    /**
     * 更新
     *
     * @param setParam   setParam
     * @param whereParam whereParam
     * @return int
     */
    int updateSelective(SysDeptCamera setParam, SysDeptCamera whereParam);

    /**
     * 数量
     *
     * @param sysDeptCamera sysDeptCamera
     * @return int
     */
    int getCount(SysDeptCamera sysDeptCamera);

    /**
     * 单条
     *
     * @param sysDeptCamera sysDeptCamera
     * @return SysDeptCamera
     */
    SysDeptCamera getOne(SysDeptCamera sysDeptCamera);

    /**
     * 多条
     *
     * @param sysDeptCamera sysDeptCamera
     * @return List<SysDeptCamera>
     */
    List<SysDeptCamera> getList(SysDeptCamera sysDeptCamera);

    /**
     * 分页
     *
     * @param sysDeptCamera sysDeptCamera
     * @return List<SysDeptCamera>
     */
    List<SysDeptCamera> getPageList(SysDeptCamera sysDeptCamera);

    /**
     *
     *根据名称查询
     * @param name
     * @return SysDeptCamera
     */
    SysDeptCamera getOneByName(@Param("name") String name);

    /**
     *
     *根据deviceId查询
     * @param deviceId
     * @return SysDeptCamera
     */
    SysDeptCamera getOneByDeviceId(@Param("deviceId") Long deviceId);

}